package ynu.sxp.demoapp.entity;

import jakarta.persistence.*;
import lombok.Data;
import ynu.sxp.demoapp.common.BaseEntity;

@Data
@Entity
@Table(name = "user")
public class User extends BaseEntity {
    @Column(length = 20, nullable = false)
    private String userId;

    @Column(length = 20, nullable = false)
    private String password;

    @Column(length = 20, nullable = false)
    private String userName;

    @Column(nullable = false)
    private Integer userSex; // 1: 男, 0: 女

    @Column
    private String userImg;

    @Column(nullable = false)
    private Integer delTag; // 1: 正常, 0: 删除
}